<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ page import="avicit.platform6.commons.utils.ViewUtil"%>
<%@ taglib prefix="sec" uri="/WEB-INF/tags/shiro.tld"%>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>设置生成方式</title>
<base href="<%=ViewUtil.getRequestPath(request)%>">
<jsp:include page="/avicit/platform6/component/common/EasyUIJsInclude.jsp"></jsp:include>
<script type="text/javascript" src="avicit/cbb/techclass/tabledefine/commtablemanager/table_node_record_set_config.js"></script>
<jsp:include page="/avicit/platform6/modules/system/commonpopup/commonSelectionHead.jsp"></jsp:include>
<jsp:include page="/avicit/im/common/ImUIJSCSSInclude.jsp"></jsp:include>
<link href="static/css/custom/lantop/css/custom.css" type="text/css"  rel="stylesheet">
<script type="text/javascript">
	var baseurl = '<%=request.getContextPath()%>';
	$(function() {
		 dialogId = "${dialogId}"; //打开页面传递的模块ID
		 initCode = ${initCode};
		 sysId = "${sysId}";
		 nodeId = "${nodeId}";
		 nodeName = "${nodeName}";
		 tableName = "${tableName}";
		 dropdownType = "${dropdownType}";
		 colRuleName = "${colRuleName}";
		 userName = "${userName}";
		 deptName = "${deptName}";
		 customName = "${customName}";
		 customPath = "${customPath}";
		 colGeneMethod = "${colGeneMethod}";
		 colType = "${colType}";
		 colLength = "${colLength}";
		 colDecimal = "${colDecimal}";
		 initColNameStr = "${initColNameStr}";
		 select1 = "${select1}";
		 input1 = "${input1}";
		 select2 = "${select2}";
		 input2 = "${input2}";
		 select3 = "${select3}";
		 colGeneMethodSelect = "${colGeneMethodSelect}";
		 configJa = ${configJa};
		 initForm();
		 $("#colGeneMethod").combobox('select', colGeneMethodSelect);
	});
</script>
</head>
<body class="easyui-layout" data-options="region:'center'" fit="true">
	<div region="center" border="false" style="height: 0; overflow: hidden; border: false;">
		<div class="formExtendBase">
			<form id="formConfig" method="post">
				<input name="id" id="id" value="${cbbTabcolumns.id}" type="hidden" />
				<sec:accesscontrollist hasPermission="3"
					domainObject="commtempletmanager_table_node_record_set_config_form_colLable">
					<div class="formUnit column2" style="display: none;">
						<label for="colLabel" class="labelbg">字段中文名</label>
						<div class="inputContainer">
							<input class="easyui-validatebox" title='字段中文名' type="text"
								name="colLabel" id="colLabel"
								value="${cbbTabcolumns.colLabel}"
								disabled="disabled"></input>
						</div>
					</div>
				</sec:accesscontrollist>
				<sec:accesscontrollist hasPermission="3"
					domainObject="commtempletmanager_table_node_record_set_config_form_colIsVisible">
					<div class="formUnit column2" style="display: none;">
					  	<label for="colGeneMethod" class="labelbg">生成方式</label>
					  <div class="inputContainer">
							<select class="easyui-combobox" style="width:185px" name="colGeneMethod" id="colGeneMethod" title="生成方式" data-options="required:true, editable:false, panelHeight:'auto',onSelect:onSelectGenemethod">
								<option value='0' <c:if test="${cbbTabcolumns.colGeneMethod eq '0'}">SELECTED</c:if> >空</option>
                                <option value='1' <c:if test="${cbbTabcolumns.colGeneMethod eq '1'}">SELECTED</c:if> >默认值</option>
                                <option value='2' <c:if test="${cbbTabcolumns.colGeneMethod eq '2'}">SELECTED</c:if> >序列</option>
                                <option value='3' <c:if test="${cbbTabcolumns.colGeneMethod eq '3'}">SELECTED</c:if> >顺带</option>
                                <option value='4' <c:if test="${cbbTabcolumns.colGeneMethod eq '4'}">SELECTED</c:if> >组合项</option>
                                <option value='5' <c:if test="${cbbTabcolumns.colGeneMethod eq '5'}">SELECTED</c:if> >统计生成</option>
							</select>
					  </div>
					</div>
				</sec:accesscontrollist>
				<sec:accesscontrollist hasPermission="3"
					domainObject="commtempletmanager_table_node_record_set_config_form_colIsVisible">
					<div class="formUnit column1" id="labelDiv" style="display:none;height:500px">
						<label class="labelbg">生成方式规则值</label>
						<div class="inputContainer" id="editorDiv">
						 
						</div>
					</div>
				</sec:accesscontrollist>
				<sec:accesscontrollist hasPermission="3"
					domainObject="commtempletmanager_table_node_record_set_config_form_colIsVisible">
					<div id="valueDiv" class="formUnit column2" style="display:none">
						<label for="colGeneMethodRule" class="labelbg">生成方式规则</label>
						<div class="inputContainer">
							<input class="easyui-validatebox" title='生成方式规则' type="text"
								name="colGeneMethodRule" id="colGeneMethodRule"
								value="${cbbTabcolumns.colGeneMethodRule}"></input>
						</div>
					</div>
				</sec:accesscontrollist>
			</form>
		</div>
		<div data-options="region:'south',border:false" style="height: 40px;">
			<div id="toolbar" style="position: absolute;bottom: 0;left: 0;width: 100%;padding:10px;box-sizing:border-box;">
				<table class="tableForm" border="0" cellspacing="1" width="100%">
					<tr>
						<td align="center"><sec:accesscontrollist hasPermission="3" domainObject="commtempletmanager_table_node_record_set_config_btn_saveButton">
								<a id="saveButton" class="easyui-linkbutton selbtnc" iconCls="icon-im-save" onclick="saveForm();" href="javascript:void(0);">保存</a>
							</sec:accesscontrollist> <sec:accesscontrollist hasPermission="3" domainObject="commtempletmanager_table_node_record_set_config_btn_resetButton">
								<a id="resetButton" class="easyui-linkbutton selbtnc" iconCls="icon-im-newreduction" onclick="resetForm('formConfig');" href="javascript:void(0);">重置</a>
							</sec:accesscontrollist> <sec:accesscontrollist hasPermission="3" domainObject="commtempletmanager_table_node_record_set_config_btn_resetButton">
								<a id="backButton" class="easyui-linkbutton selbtnc" iconCls="icon-im-back" onclick="closeWindow();" href="javascript:void(0);">返回</a>
							</sec:accesscontrollist></td>
					</tr>
				</table>
			</div>
		</div>
</body>
</html>